import request from '../../utils/Request'

export const saveVisitor = data => {
    return request({
        method: 'post',
        url: '/api/daily/visitor/save',
        data: data
    })
}

export const deleteVisitor = bid => {
    return request({
        method: 'get',
        url: '/api/daily/visitor/delete' + bid,
        params: {}
    })
}

export const selectVisitor = bid => {
    return request({
        method: 'get',
        url: '/api/daily/visitor/select' + bid,
        params: {}
    })
}

export const listVisitor = (data, current, size) => {
    data.current = current
    data.size = size
    return request({
        method: 'get',
        url: '/api/daily/visitor/list',
        params: {data}
    })
}
